
// VipManageDlg.h : header file
//

#pragma once
#include "afxwin.h"

#include "BtnST.h"
#include "afxcmn.h"

#include "DlgListInfo.h"

// CVipManageDlg dialog
class CVipManageDlg : public CDialogEx
{
// Construction
public:
	CVipManageDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_VIPMANAGE_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnClose();
    void ThreadFunc();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg BOOL OnEraseBkgnd(CDC* pDC);
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    void SetBitmapById(CButtonST& btn, int hBit);
    CImage m_img;
    CButtonST m_close;

    CDlgListInfo* m_dlgListInfo;
    virtual BOOL Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
    virtual BOOL DestroyWindow();
    CStatic m_text;
    CButtonST m_new;
    CButtonST m_modify;
    CButtonST m_add;
    afx_msg void OnBnClickedSerach();
    CEdit m_txtSerach;
    afx_msg void OnSwitchVip();
    CButtonST m_btnSys;
    afx_msg void OnSys();
    afx_msg void OnSys1();
    CButtonST m_btnPos;
    CButtonST m_btnVip;
    CButtonST m_btnStoreMan;
    CButtonST m_btnSysUp;
    CButtonST m_btnSPMan;
    afx_msg void OnPos();
    afx_msg void OnVipMan();
    afx_msg void OnStoreMan();
    afx_msg void OnSysUp();
    afx_msg void OnSPMan();
    afx_msg void OnBatch();
    int InsertItemInfo(ItemInfo& stItem);
    int LoadData(CDlgListInfo* pDlg);
    CStatic m_area;
    afx_msg void OnSwitchToVip();
    CButtonST m_btnSearch;
    afx_msg void OnAddItem();
    afx_msg void OnModifyItem();
    afx_msg void OnDelItem();
};
